import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"
const TopEmpty = () => import("../views/top-empty.vue")

const routes: RouteRecordRaw[] = [
  {
    path: "/top-empty",
    component: TopEmpty
  },
  {
    // 顶设计
    path: '/CeilingStyle',
    name: 'Ceiling.CeilingStyle',
    component: () => import('../views/TopDesign/TopDesign.vue'),
    children: [
      {
        path: "/CeilingStyle/edit/:id",
        name: "edit",
        component: () => import("../views/TopDesign/pages/edit.vue")
      }
    ],
    meta: {
      path: "CeilingStyle"
    }
  },
  {
    // 设计构思
    path: '/DesignConcept',
    name: 'DesignConcept',
    component: () => import('../views/DesignConcept.vue'),
    meta: {
      path: "DesignConcept"
    }
  }
]
export const router = createRouter({
  routes,
  history: createWebHashHistory()
})